package test.com.sky.designPattern.observerPattern.listener;


import com.sky.JULLog.MyLogger;

import java.util.logging.Logger;

/**
 * @author : wushikai
 * <p>
 * date : 2022-05-27
 * 注册通知
 */
class RegNotificationListener implements MyEventListener {


    private  static Logger log = MyLogger.getLogger(RegNotificationListener.class);

    @Override
    public void handleRegSuccess(UserEvent event) {
        log.info("用户已注册.");
        User user = (User) event.getSource();
        event.processNotification(user.getUserId());
    }
}
